{{>header}}

<div class="settingsApp main">
    <div class="info">
        <div class="name"><h3>{{app.name}}</h3></div>

        <div class="users">
            <b>{{app.users.length}}</b> user(s)
        </div>

        <div class="id">
            <b>Client ID:</b>
            <p>{{app.client_id}}</p>
        </div>

        <div class="secret">
            <b>Client Secret:</b>
            <p>{{app.secret}}</p>
        </div>
    </div>


    <form method="post">
        <div class="field">
            <b>应用名称</b>
            <input type="text" name="name" value="{{app.name}}">
        </div>

        <div class="field">
            <b>首页地址</b>
            <input type="text" name="url" value="{{app.url}}">
        </div>
        <div class="field">
            <b>应用描述</b>
            <textarea name="desc">{{app.desc}}</textarea>
        </div>
        <div class="field">
            <b>验证回调地址</b>
            <input type="text" name="callback" value="{{app.callback}}">
        </div>
        <div class="btns">
            <input type="submit" value="更新">
            <input type="button" value="删除应用">
        </div>
    </form>
</div>

{{>homeSide}}